<%@ page language="java" import="java.util.*" pageEncoding="GB18030"
import="Reservation.UserBean,Application.Dao.ReservationDAO,DomainData.Reservation"
%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  </head>
  
  <body>
	<%
		UserBean currentUser = (UserBean) session.getAttribute("currentSessionUser");
		if (currentUser == null) {
			response.sendRedirect("Login.jsp");
			return;
		}
		int ID = Integer.parseInt(request.getParameter("reservationID"));
		System.out.println("The removed reservation ID is "+ID);
		ReservationDAO.removeReservation(ID);
			
 	%>
  </body>
</html>
